<?php
//error_reporting(E_ALL ^ E_NOTICE);

if(!defined('ROOT_PATH')){
	define('ROOT_PATH', str_replace('index.php', '', str_replace('\\', '/', __FILE__)));
}
//===================================================
if(!defined('NP_PATH')){
	define('NP_PATH', ROOT_PATH.'NarynPHP/');
}
//===================================================
if(!defined('JS_PATH')){
	define('JS_PATH', ROOT_PATH.'Include/Js/');
}
//===================================================
if(!defined('Images_PATH')){
	define('Images_PATH', ROOT_PATH.'Include/Images/');
}
//===================================================
if(!defined('Css_PATH')){
	define('Css_PATH', ROOT_PATH.'Include/Css/');
}
//===================================================

if(!defined('__UPLOAD__')){
	define('__UPLOAD__', ROOT_PATH.'Uploads/');
}
//===================================================
$http = (isset($_SERVER['HTTPS'])&&$_SERVER['HTTPS']!='off')?'https://':'http://';  
$port = $_SERVER["SERVER_PORT"]==80?'':':'.$_SERVER["SERVER_PORT"];  
$url = $http.$_SERVER['SERVER_NAME'].$port.$_SERVER["REQUEST_URI"];  
if(!defined('__URL__')){
	define('__URL__', $url);
}
//===================================================

$server_name = 'localhost';
if(!defined('__DOMAIN__')){
	define('__DOMAIN__', $http.$server_name.$port.'/');
}
//===================================================
if(!defined('APP_NAME')){
	define('APP_NAME', 'narynphp');
}
//===================================================

require_once(NP_PATH.'NarynPHP.php');

$app = new Narynphp();


?>
